import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入eleui
import ElementUI from 'element-ui';
// 导入eleui的css样式
import 'element-ui/lib/theme-chalk/index.css';
// 导入axios
import axios from 'axios'
// 设置全局基础路径
axios.defaults.baseURL = 'http://big-event-vue-api-t.itheima.net'

// 导入全局css样式文件 global.less
import '@/assets/global.less'


Vue.use(ElementUI);

// 将axios实例挂载到vue的原型对象中
Vue.prototype.$http = axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
